package com.isunland.managesystem.ui;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import com.isunland.managesystem.R;
import com.isunland.managesystem.base.BasePagerActivity;
import com.isunland.managesystem.entity.ProjectLedger;

/**
 * 对象功能:
 * 开发公司: 北京信普达系统工程有限公司
 * 开发人员: HuXiaoDan
 * 创建时间: 2017/5/15 13:58
 */
public class ProjectLedgerPagerActivity extends BasePagerActivity {
  protected static final String EXTRA_CONTENT =
      ProjectLedgerPagerActivity.class.getSimpleName() + "EXTRA_CONTENT";
  private ProjectLedger content;

  @Override protected void onCreate(Bundle arg0) {
    content = (ProjectLedger) getIntent().getSerializableExtra(EXTRA_CONTENT);
    super.onCreate(arg0);
  }

  @Override protected Fragment createFragmentOne() {

    return ProjectLedgerDetailFragment.newInstance(content);
  }

  @Override protected Fragment createFragmentTwo() {
    return ProjectLedgerPropertyListFrament.newInstance(content);
  }

  @Override protected int[] createTitle() {
    return new int[] {
        R.string.projectLedger, R.string.customAttributes
    };
  }
}
